import request from '@/utils/request'

// 查询渠道统计pv信息列表
export function listCountPvInfo(query) {
  return request({
    url: '/channel/countPvInfo/list',
    method: 'get',
    params: query
  })
}

// 查询渠道统计pv信息详细
export function getCountPvInfo(id) {
  return request({
    url: '/channel/countPvInfo/' + id,
    method: 'get'
  })
}

// 新增渠道统计pv信息
export function addCountPvInfo(data) {
  return request({
    url: '/channel/countPvInfo',
    method: 'post',
    data: data
  })
}


// 修改渠道统计pv信息
export function updateCountPvInfo(data) {
  return request({
    url: '/channel/countPvInfo',
    method: 'put',
    data: data
  })
}

// 删除渠道统计pv信息
export function delCountPvInfo(id) {
  return request({
    url: '/channel/countPvInfo/' + id,
    method: 'delete'
  })
}

export function listCount(query) {
  return request({
    url: '/channel/countPvInfo/count/list',
    method: 'get',
    params: query
  })
}
